{extend name="public/layout" /}
{block name="head"}{/block}
{block name="body"}

<body>
  <div class="container-fluid p-t-15">
    <div class="card">
      <div class="card-body">
        <form class="form-horizontal" id="form" data-call="refreshPage">
          <div class="form-group">
            <label class="col-sm-2 col- control-label">字段类型</label>
            <div class="col-sm-4">
              <p class="form-control-static">{$info.config_type}</p>
            </div>
            <label class="col-sm-2 col- control-label">字段标题</label>
            <div class="col-sm-4">
              {:\\helper\\Form::_text('config_title',$info.config_title,[
              "datatype"=>"*",
              "nullmsg"=>"请填写字段标题"
              ])}
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 col- control-label">字段标识</label>
            <div class="col-sm-4">
              <p class="form-control-static">{$info.config_key}</p>
            </div>
            <label class="col-sm-2 col- control-label">字段值</label>
            <div class="col-sm-4">
              {:\\helper\\Form::_text('config_value',$info.config_value)}
            </div>

          </div>
          <div class="form-group">
            <label class="col-sm-2 col- control-label">字段描述</label>
            <div class="col-sm-10">
              {:\\helper\\Form::_text('config_description',$info.config_description)}
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 col- control-label">字段配置</label>
            <div class="col-sm-10 form-control-static">
              {:\\helper\\Form::_ace('config_set',$info.config_set,[
              "data-theme"=>"tomorrow_night_eighties",
              "data-mode"=>"json",
              "style"=>"height:120px"
              ])}
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 col- control-label">排序</label>
            <div class="col-sm-6">
              {:\\helper\\Form::_number('show_order',$info.show_order,[
              "datatype"=>"n"
              ])}
            </div>
          </div>
          <div class="form-group">
            <div class="col-sm-10 col-sm-offset-2">
              <div class="pull-left">
                <button type="button" class="btn btn-primary btn-sub">保存</button>
              </div>
              <div class="pull-left m-l-15">
                <p class="error-msg"></p>
              </div>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
  <script>
    formHelper.init();
    formHelper.subForm();
  </script>
</body>
{/block}